package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DsVehicleinformationMapper;
import com.ruoyi.system.domain.DsVehicleinformation;
import com.ruoyi.system.service.IDsVehicleinformationService;

/**
 * 车辆信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-28
 */
@Service
public class DsVehicleinformationServiceImpl implements IDsVehicleinformationService 
{
    @Autowired
    private DsVehicleinformationMapper dsVehicleinformationMapper;

    /**
     * 查询车辆信息
     * 
     * @param vehicleId 车辆信息主键
     * @return 车辆信息
     */
    @Override
    public DsVehicleinformation selectDsVehicleinformationByVehicleId(Long vehicleId)
    {
        return dsVehicleinformationMapper.selectDsVehicleinformationByVehicleId(vehicleId);
    }

    /**
     * 查询车辆信息列表
     * 
     * @param dsVehicleinformation 车辆信息
     * @return 车辆信息
     */
    @Override
    public List<DsVehicleinformation> selectDsVehicleinformationList(DsVehicleinformation dsVehicleinformation)
    {
        return dsVehicleinformationMapper.selectDsVehicleinformationList(dsVehicleinformation);
    }

    /**
     * 新增车辆信息
     * 
     * @param dsVehicleinformation 车辆信息
     * @return 结果
     */
    @Override
    public int insertDsVehicleinformation(DsVehicleinformation dsVehicleinformation)
    {
        return dsVehicleinformationMapper.insertDsVehicleinformation(dsVehicleinformation);
    }

    /**
     * 修改车辆信息
     * 
     * @param dsVehicleinformation 车辆信息
     * @return 结果
     */
    @Override
    public int updateDsVehicleinformation(DsVehicleinformation dsVehicleinformation)
    {
        return dsVehicleinformationMapper.updateDsVehicleinformation(dsVehicleinformation);
    }

    /**
     * 批量删除车辆信息
     * 
     * @param vehicleIds 需要删除的车辆信息主键
     * @return 结果
     */
    @Override
    public int deleteDsVehicleinformationByVehicleIds(Long[] vehicleIds)
    {
        return dsVehicleinformationMapper.deleteDsVehicleinformationByVehicleIds(vehicleIds);
    }

    /**
     * 删除车辆信息信息
     * 
     * @param vehicleId 车辆信息主键
     * @return 结果
     */
    @Override
    public int deleteDsVehicleinformationByVehicleId(Long vehicleId)
    {
        return dsVehicleinformationMapper.deleteDsVehicleinformationByVehicleId(vehicleId);
    }
}
